package MyLog;

import org.apache.log4j.Logger;

public class AClass {
	public Logger logger;
	public AClass(){
		// The root-class creates the Logger
		new MyLog();
		logger = MyLog.getLogger();
	}
	
	public void DoSomething(){
		AnotherClass ac = new AnotherClass();
		logger.info(MyLog.getLogTime() + "Object AnotherClass created");
		ac.DoSomething();
		logger.info(MyLog.getLogTime() + "EndOfProgram");
	}
	
	public static void main(String[] args){
		AClass ac = new AClass();
		ac.DoSomething();
	}
}
